GenericTwistUp

Interface for the twist-up and position twist-up animations.

  • The twist-up animation instructs the drone to move up while rotating slowly on itself until the end of the animation, first with the camera looking down and progressively looking up at the horizon while it reaches its target altitude.
  • The position twist-up animation instructs the drone to first move above the tracked target then up and rotate slowly on itself until the end of the animation.

These two animations have the same configuration parameters and the same state properties.

Types

Link copied to clipboard
abstract class Config : Animation.Config
Base configuration class for the twist-up and position twist-up animations.
Link copied to clipboard
Position twist-up animation configuration class.
Link copied to clipboard
Twist-up animation configuration class.

Functions

Link copied to clipboard
Retrieves currently applied animation execution mode.
Link copied to clipboard
@IntRange(from = 0, to = 100)
abstract fun getProgress(): Int
Retrieves current animation progress.
Link copied to clipboard
abstract fun getRotationAngle(): Double
Retrieves currently applied animation rotation angle.
Link copied to clipboard
@FloatRange(from = 0)
abstract fun getRotationSpeed(): Double
Retrieves currently applied animation rotation angular speed.
Link copied to clipboard
@FloatRange(from = 0)
abstract fun getSpeed(): Double
Retrieves currently applied animation speed.
Link copied to clipboard
Retrieves current animation execution status.
Link copied to clipboard
Retrieves the animation type.
Link copied to clipboard
@FloatRange(from = 0)
abstract fun getVerticalDistance(): Double
Retrieves currently applied animation vertical distance.
Link copied to clipboard
Tells whether the animation matches some configuration.